package com.ruoyi.common.domain;

import java.util.List;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 编码规则主对象 sys_code_rule
 *
 * @author husky
 * @date 2023-11-04
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sys_code_rule")
@ApiModel(value = "SysCodeRule", description = "编码规则主实体")
public class SysCodeRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type= IdType.AUTO)
    @ApiModelProperty("id")
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    @ApiModelProperty("编号")
    private String number;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty("名称")
    private String name;

    /** 基础元素 */
    @Excel(name = "基础元素")
    @ApiModelProperty("基础元素")
    private String basicDomain;

    /** 基础元素名称 */
    @ApiModelProperty("基础元素名称")
    private String basicDomainName;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty("状态")
    private String status;

    /** 编码规则子信息 */
    @TableField(exist = false)
    @ApiModelProperty("编码规则子列表")
    private List<SysCodeRuleEntry> sysCodeRuleEntryList;
}
